package cn.xiyue.production.ui;

import android.os.Bundle;

import cn.xiyue.production.R;
import cn.xiyue.production.base.CallableActivity;
import cn.xiyue.production.bean.Person;

public class MarketActivity extends CallableActivity{

    private SmartTableView stv_market;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_market);
        initView();
    }

    private void initView() {
        stv_market = (SmartTableView) findViewById(R.id.stv_market);
        async(requestApi.getAllPerson(), value -> stv_market.setData(value.getData(), Person.class));
    }
}